﻿using HZH_Controls;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace EEM.MyControls
{
    public partial class AreaItem : UserControl
    {
        public AreaItem()
        {
            InitializeComponent();
        }

        [DefaultValue(typeof(string), "客厅")]
        public string Title
        {
            get
            {
                return labArea.Text;
            }
            set
            {
                labArea.Text = value;
            }
        }

        public decimal Temperature
        {
            get { return labTemperature.Text.ToDecimal(); }

            set { labTemperature.Text = value.ToString(); }
        }

        public int Humidity
        {
            get { return labHumidity.Text.ToInt(); }

            set { labHumidity.Text = value.ToString(); }
        }
    }
}
